.pluginsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;


  .pluginCard {
    border-radius: 8px;
    padding: 16px;
    padding-bottom: 12px;
    cursor: pointer;

    transition: all 0.2s;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 8px;

    :global(.dark) & {
      background: #292A2C;
      border: 1px solid #292A2C;
      box-shadow: none;
    }

    &:hover {
      box-shadow: 0px 0px 24px 0px rgba(196,199,202,0.5);
      :global(.dark) & {
        background: #2E2F32;
        box-shadow: none;
      }

    }

    .pluginCardTop {
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
    }

    .pluginCardBottom {
      border-top: 1px solid #F0F0F0;
      // padding-top: 12px;
      display: flex;
      justify-content: space-between;
      margin-top: 29px;

      :global(.dark) & {
        border-top: 1px solid #383A3C;
      }

      .running,
      .closed {
        padding: 0 16px;
        height: 24px;
        background: rgba(30, 215, 96, 0.1);
        border-radius: 16px;
        border: 1px solid #1ED760;
        display: flex;
        align-items: center;
        margin-top: 12px;
        color: #00B942;

        .round {
          width: 6px;
          height: 6px;
          background: #00B942;
          border-radius: 50%;
          margin-right: 8px;
        }
      }

      .closed {
        color: #B8B8B8;
        background-color: #EFEFEF;
        border: 1px solid #C7C7C7;

        :global(.dark) & {
          background-color: #3B3B3E;
          border: 1px solid #3B3B3E;
          color: #7E7F83
        }

        .round {
          background: #BABABA;

          :global(.dark) & {
            background-color: #7E7F83;
          }
        }
      }

      .actions {
        display: flex;
        margin-top: 8px;

        .edit {
          margin-right: 8px;

          :global(.dark) & {
            // border-color: rgba(255, 255, 255, 0.2);
            // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
          }
        }

        .edit,
        .del {
          width: 32px;
          height: 32px;
          font-size: 14px;
          border-radius: 50%;
          // background-color: #fff;
          border: none;
          display: flex;
          align-items: center;
          justify-content: center;

          :global(.dark) & {
            // background-color: #2E3033;
            color: #F0F0F0;
          }
        }

        .edit:hover,
        .del:hover {
          background: #F3F3F3;
          // background: hsl(222 0% 86% /4%);
          :global(.dark) & {
            background: #3F4043;
          }

        }
      }



    }

    .pluginIcon {
      width: 48px;
      height: 48px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #f5f5f5;
      color: #000;
      img{
        width: 100%;
        height: 100%;
        border-radius: 8px;
      }
      :global(.dark) & {
        background-color: #2A2A2A;
        color: #fff;
      }
    }

    .pluginInfo {
      flex: 1;

      .pluginName {
        font-weight: 500;
        margin-bottom: 4px;
        font-weight: 600;
        font-size: 18px;
        color: #313131;

        :global(.dark) & {
          color: rgba(255, 255, 255, 0.9);
        }
      }

      .pluginNamespace {
        font-size: 12px;
        color: rgba(0, 0, 0, 0.5);

        :global(.dark) & {
          color: rgba(255, 255, 255, 0.5);
        }
      }
    }

    .installButton {
      // position: absolute;
      top: 16px;
      right: 16px;
      padding: 4px 12px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 500;
      background: linear-gradient(138deg, #6846F4 0%, #004DFF 39%, #00C4DE 76%, #52CE73 100%);
      color: white;
      border: none;
      cursor: pointer;

      &.disabled {
        background-color: transparent;
        border: 1px solid rgba(0, 0, 0, 0.2);
        color: rgba(0, 0, 0, 0.5);

        :global(.dark) & {
          border-color: rgba(255, 255, 255, 0.2);
          color: rgba(255, 255, 255, 0.5);
        }
      }
    }

    .switchRoot {
      // position: absolute;
      top: 16px;
      right: 16px;
      width: 36px;
      height: 20px;
      background-color: rgba(0, 0, 0, 0.1);



      border-radius: 10px;
      cursor: pointer;
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
      display: flex;
      align-items: center;
      cursor: pointer;

      :global(.dark) & {
        background: rgb(88, 89, 90);
      }

      &[data-state='checked'] {
        // background: linear-gradient(138deg, #6846F4 0%, #004DFF 39%, #00C4DE 76%, #52CE73 100%);
        background: #1ED760;

        :global(.dark) & {
          background: rgb(249, 248, 246);
        }
      }
    }

    .switchThumb {
      display: block;
      width: 16px;
      height: 16px;
      background-color: white;
      border-radius: 50%;
      box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
      transition: transform 300ms;
      transform: translateX(0px);
      will-change: transform;
      margin: 0 2px;

      :global(.dark) & {
        background-color: rgb(47, 47, 48);
      }

      &[data-state='checked'] {
        transform: translateX(17px);

        :global(.dark) & {
          background-color: #000;
        }
      }
    }
  }
}

.loadingIndicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;

  :global(.dark) & {
    color: rgba(255, 255, 255, 0.6);
  }
}


.status {
  align-self: flex-start;

  :global(.dark) & {
    color: rgba(255, 255, 255, 0.7);
  }

  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}